/**
 * 工期对象
 *
 * @export
 * @class Farm
 */
export class Phase {
  /**
   * Creates an instance of Farm.
   * @param {number} phaseId 工期ID
   * @param {number} farmId 风场ID
   * @param {string} phaseCode 工期代码
   * @param {string} phaseName 工期名称
   * @param {number} capacity 总装机容量(MW)
   * @param {Date} productionDate 风场建设日期
   * @param {string} phaseSeq 排序
   * @param {string} farmCategory 风场类型
   *
   * @memberOf Phase
   */
  constructor(
    public phaseId: number,
    public farmId: number,
    public phaseCode: string,
    public phaseName: string,
    public capacity: number,
    // public productionDate: Date,
    public productionDate: string,
    public phaseSeq: number,
    public isChecked: boolean = false,
    public farmCategory?: string) {
    Object.defineProperty(this, 'isChecked', {enumerable: false});
  }
}
